<template>
  <div>
    <el-input v-model="input" v-bind="$attrs"></el-input>
    <div>{{ errorTip }}</div>
  </div>
</template>
<script>
export default {
  inheritAttrs: false,
  props: {
    value: {
      type: String,
      default: ''
    },
    errorTip: {
      type: String,
      default: ''
    }
  },
  data() {
    return {}
  },
  computed: {
    input: {
      get() {
        return this.value
      },
      set(val) {
        this.$emit('input', val)
      }
    }
  }
}
</script>